#ifndef __MANA__H__
#define __MANA__H__
//-dr124
#include "Utility/MaskedVar.h"

class CMana
{
private:
	TMaskedFloat m_mana;
	float m_manaMax;
	TMaskedInt m_manaAsRoundedPercentage;

	TMaskedFloat m_manaRegenAmount;

public:
	CMana() : m_mana(50.0f), m_manaMax(100.0f), m_manaAsRoundedPercentage(100), m_manaRegenAmount(2.0f) {}

	ILINE float GetMana() const { return m_mana; }
	ILINE void  SetMana( float fMana ) 
	{
		m_mana = fMana;
		m_manaAsRoundedPercentage = int_ceil( m_mana * 100.0f / m_manaMax); 
	}
	ILINE float GetManaMax() const { return m_manaMax; }
	ILINE void  SetManaMax( float fManaMax ) { m_manaMax = fManaMax; }
	ILINE int   GetManaAsRoundedPercentage() const { return m_manaAsRoundedPercentage; }

	ILINE float GetManaRegenAmount() const { return m_manaRegenAmount; };
	ILINE void	SetManaRegenAmount( float fManaRegenAmount ) { m_manaRegenAmount = fManaRegenAmount; }

};

#endif